/*
 * Main.java
 *
 * Created on December 23, 2006, 4:26 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package kkInvoker;

import kkWindows.kkMainWindow;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;


import com.jgoodies.looks.*;
import com.jgoodies.looks.plastic.*;
import com.jgoodies.looks.windows.*;
    


/**
 *
 * @author Kowshik
 */
public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
       configureUI();
        kkMainWindow mWindow=new kkMainWindow();
        mWindow.addWindowListener(new WindowAdapter(){
            public void windowClosing(WindowEvent event)
            {
                ((kkMainWindow)(event.getSource())).dispose();
            }
            
        });
        
        mWindow.setResizable(false);
        mWindow.setVisible(true);
        
       
        
    }
    
    private static void configureUI(){
        
        try{
            UIManager.setLookAndFeel(Options.PLASTICXP_NAME);
            // UIManager.setLookAndFeel(Options.PLASTIC3D_NAME);
          //  UIManager.setLookAndFeel("com.jgoodies.looks.windows.WindowsLookAndFeel");
        }catch(Exception e){
            System.out.println("Can't set L&F \n"+e);
        }
    }
}